<?php

namespace Acme\TestBundle\Controller;

use Acme\TestBundle\Entity\Score;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;

/**
 * Class ScoreController
 * @package Acme\TestBundle\Controller
 * @Route("/score")
 */
class ScoreController extends Controller
{
    /**
     * @Route("/create")
     */
    public function createAction(){
        $score = new Score();
        $score->setCid(3);
        $score->setScore(75);
        $score->setSid(4);

        $em = $this->getDoctrine()->getManager();

        $em->persist($score);

        $em->flush();
        var_dump($score->getId());die();

    }
}
